﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo7
{
    internal class Program
    {
        static void Main(string[] args)
        {
            Console.Write("请输入性别(男输入1/女输入0)");
            var sex = Console.ReadLine();
            var result = (sex != "0" && sex != "1") ? "输入错误" : (sex == "0" ? "女" : "男");
            Console.WriteLine(result);
            Console.ReadKey();
        }
    }
}
